package demo0506;

import java.io.*;

public class Test02 {
    public static void main(String[] args)  throws IOException {
        String FilePath="新建文本文档 (2).txt";
        try(BufferedReader br=new BufferedReader(new FileReader(FilePath))){
            String line;
            while ((line= br.readLine())!=null){
                System.out.println(line);
            }
        }catch(IOException e){
            e.printStackTrace();
        }

    }
}


